package com.muyu.system.danmo.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 基础类
 */
@Data
public abstract class BaseEntity implements Serializable {
    @TableField(
            fill = FieldFill.INSERT
    )
    private Long createBy;
    @TableField(
            fill = FieldFill.INSERT
    )
    private LocalDateTime createDate;

    @TableField(
            fill = FieldFill.INSERT_UPDATE
    )
    private String updateBy;
    @TableField(
            fill = FieldFill.INSERT_UPDATE
    )
    private LocalDateTime updateDate;

    /**
     * 删除状态  1删除 0未删除
     */
    @TableLogic
    private Integer deleteFlag;
}
